GtkButtonBox doesn't do height-for-width
authorMatthias Clasen <mclasen@redhat.com>
Thu, 28 Oct 2010 18:22:46 +0000 (14:22 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 28 Oct 2010 18:25:50 +0000 (14:25 -0400)
GtkButtonBox doesn't do height-for-width, therefore we should
explicitly set these methods to NULL instead of hoping that the
inherited GtkBox implementations work ok.

gtk/gtkbbox.c

index 346e9c520fe4945dbe5066d0a28af7d8d5a7406b..f1531b1eef3dd67bd97c6994c8bf8443cb189fb8 100644 (file)
@@ -126,6 +126,8 @@ gtk_button_box_class_init (GtkButtonBoxClass *class)
 
   widget_class->get_preferred_width = gtk_button_box_get_preferred_width;
   widget_class->get_preferred_height = gtk_button_box_get_preferred_height;
+  widget_class->get_preferred_width_for_height = NULL;
+  widget_class->get_preferred_height_for_width = NULL;
   widget_class->size_allocate = gtk_button_box_size_allocate;
 
   container_class->remove = gtk_button_box_remove;